package com.chen.gui.action;

import javax.swing.AbstractAction;

import com.chen.qq.Context;

public abstract class BasicAction extends AbstractAction {

	private static final long serialVersionUID = 3373876574715723537L;

	public BasicAction() {
		putValue(NAME, getText());
		putValue(SMALL_ICON, Context.getIcon(getIcon()));
	}

	protected abstract String getText();

	protected abstract String getIcon();

}
